<?php

use Faker\Factory as Faker;

class PenduduksTableSeeder extends Seeder {

	public function run()
	{
		$faker = Faker::create();

		foreach(range(1, 10) as $index)
		{
			Penduduk::create([
				'nik' => $faker->randomNumber($nbDigits = 6),
				'nama' => $faker->name($gender = null|'male'|'female'),
				'keterangan' => $faker->sentence($nbWords = 6),
				'jenis_kelamin' => $faker->randomElement($array = array ('L','P')),
				'golongan_darah' => $faker->randomElement($array = array ('O','A','B','AB')),
				'tempat_lahir' => $faker->city,
				'tanggal_lahir' => $faker->date($format = 'Y-m-d', $max = 'now'),
				'agama_id' => $faker->numberBetween($min = 1, $max = 5),
				'pendidikan_id' => 1,
				'jenis_pekerjaan_id' => 1,
				'status_keluarga_id' => 1,
				'status_kawin' => $faker->randomElement($array = array ('kawin','belum kawin')),
				'warga_negara' => $faker->state,
				'paspor' => '',
				'kitas' => '',
				'ayah' => $faker->name($gender = null|'male'|'female'),
				'ibu' => $faker->name($gender = null|'male'|'female'),
				'no_kk' => $faker->randomNumber($nbDigits = 8),
				'is_lokal' => 1,
				'is_active' => 1,
				'user_id' => 1
			]);
		}
	}

}